<template>
  <div class="bg">
    <div
      class="container"
      style="
        position: relative;
        width: 62%;
        height: 170px;
        display: flex;
        box-sizing: border-box;
        color: #fff;
        margin: 0 auto;
        z-index: 999;
      "
    >
      <div class="one" style="">
        <p>培训报名</p>
        <p>全方位一体化"的培训服务</p>
      </div>
      <div class="two"><a href="" class="btn">点击培训报名</a></div>
    </div>
    <div class="mask"></div>
  </div>
</template>

<script setup lang="ts"></script>

<style scoped lang="scss">
.bg {
  position: relative;
  height: auto;
  min-height: unset;
  background-position: center right;
  background-size: cover;
  background-image: url(https://www.wzxfpx.com/wp-content/uploads/2023/05/学院后台照片.jpg);
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: #17252a;
  padding-top: 150px;
  padding-bottom: 150px;
}

.mask {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  background-color: black;
  opacity: 0.3;
}
.one {
  flex: 1;
  padding: 25px;
  text-align: center;
  background-color: #00acf2;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  font-size: 18px;

  p {
    font-weight: 700;
    padding-bottom: 44px;
  }
}
.two {
  flex: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  a {
    display: block;
    width: 154px;
    height: 48px;
    background-color: #00acf2;
    text-align: center;
    line-height: 2.5rem;
    color: #fff;
    font-weight: bolder;
    border-radius: 5px;
    text-decoration: none;
  }
}
@media (min-width: 150px) and (max-width: 710px) {
  .container {
    flex-wrap: wrap;
    margin-top: 20px;
  }
}
@media (min-width: 150px) and (max-width: 320px) {
  .btn {
    width: 100%;
    border-radius: 0px;
  }
}

/* 710 */
</style>
